package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/4/30 14:48
 */
@ApiModel(description = "更新會員信息入參")
@Setter
@Getter
public class EditUserInfoBo {

    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty(value = "头像",required = true)
    private String avatar;

    @NotNull
    @ApiModelProperty(value = "昵称",required = true)
    private String nickname;

    @Length(max = 20, message = "姓名超出限制")
    @ApiModelProperty("真实名字")
    private String realname;

    @Email(message = "邮箱格式错误")
    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("性别")
    private Byte sex;

    @ApiModelProperty("微信openId")
    private String openId;


}
